package reflect;

import reflect.annotations.AutoRunClass;

public class ReflectDemo11 {
    public static void main(String[] args) throws ClassNotFoundException {
        //查看person类上是否被注解@AutoRunClass标注
        Class cls=Class.forName("reflect.Person");
        boolean mark=cls.isAnnotationPresent(AutoRunClass.class);
        if(mark)
        {
            System.out.println("person类被@AutoRunClass标注");;
        }else {
            System.out.println("person类没有被@AutoRunClass标注");
        }

    }
}
